import Vue from 'vue'
import Router from 'vue-router'
import Main from '@/components/Main'
import home from '@/components/home'
import news from '@/components/news'
import recruit from '@/components/recruit'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Main,
      redirect:'/home',
      children: [
      	{
      		path: 'home',
      		component: home
      	},
      	{
      		path: 'news',
      		component: news
      	},
      	{
      		path: 'recruit',
      		component: recruit
      	}
      ]
    }
  ]
})
